import axiosY from './request.js'

// url地址请求
export function login(data) {
	return axiosY({
		url: `/balance${data}`,
		method: 'GET',
	})
}
// 根据合约地址查询
export function queryAddress(contractAddress, ownerAddress, skip = 0, limit = 12,) {
	return axiosY({
		url: '/token',
		method: 'GET',
		params: { contractAddress, ownerAddress, skip, limit }
	})
}
// 根据tokenid查询
export function queryTokenId(contractAddress, tokenId) {
	return axiosY({
		url: '/preview',
		method: 'GET',
		params: {
			contractAddress, tokenId
		}
	})
}
